//
//  WSMBaseViewController.h
//  WinesMall
//
//  Created by Isaac on 17/8/29.
//  Copyright © 2017年 Isaac. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface WSMBaseViewController : UIViewController

//增加 titleView
- (void)addTitleViewWithTitle:(NSString *)title;
- (void)addBarButtonItemWithFrame:(CGRect)frame WithTitle:(NSString *)title WithImage:(UIImage *)image target:(id)target action:(SEL)action isLeft:(BOOL)isLeft;



/**
 *返回父控制器
 *
 */
- (void)gotoSuperViewController;

/**
 *返回根控制器
 *
 */
- (void)gotoRootController ;

/**
 *更新窗口
 *
 */
- (void)pushViewController:(WSMBaseViewController *)_viewC animate:(BOOL)animated;

/**
 *present更新窗口
 *
 */
- (void)presentViewController:(WSMBaseViewController *)_viewC animate:(BOOL)animated completion:(void(^)())completion;


/**
 *跳转到视图控制器
 *
 */
- (void)poptoViewcontroller:(WSMBaseViewController *)_viewC animated:(BOOL)animated;

@end
